import React, { Component } from 'react'


export default class Test extends Component {
 
  shouldComponentUpdate(nextProps, nextState) {
    // console.log('this.props',this.props)
    if (JSON.stringify(nextProps) === JSON.stringify(this.props) && JSON.stringify(nextState) === JSON.stringify(this.state)) {
      return false
    }
    console.log(`this.props === this.nextProps`, this.props === nextProps)
    console.log(`this.state === this.nextState`, this.state === nextState)
    console.log(`JSON.stringify(this.nextState)`, JSON.stringify(this.nextState))
    console.log('nextProps, nextState',nextProps, nextState)
    return true
  }
  render() {
    console.log('Test render')
    return (
      <div>
        Test
      </div>
    )
  }
}
